package com.ifood.common.enums;

import lombok.Getter;

@Getter
public enum SysTypeEnum {
    //系统类型 1:app;2mini;3:pc
    APP_TYPE("1", "APP"),
    MINI_TYPE("2", "小程序"),
    PC_TYPE("3", "PC");


    private final String code;
    private final String value;

    SysTypeEnum(String code, String value) {
        this.code = code;
        this.value = value;
    }

    public static String getValue(String code) {
        for (DelFlagEnum value : DelFlagEnum.values()) {
            if (value.getCode().equals(code)) {
                return value.getValue();
            }
        }
        return "";
    }
}
